
#ifndef __INKA_GFX_POLYRENDERMESH_H__
#define __INKA_GFX_POLYRENDERMESH_H__

#include <gfx/vertexbuffer.h>
#include <gfx/indexbuffer.h>

namespace inka
{
namespace gfx
{

class PolyRenderMesh
{
private:
  unsigned        _numberOfVertices;
  VertexBuffer    *_vertices;
  VertexBuffer    *_normals;
  VertexBuffer    *_texCoords;
  VertexBuffer    *_selections;

  unsigned        _numberOfIndices;
  IndexBuffer     *_indices;

public:
  PolyRenderMesh();

  void SetVertices (unsigned num, VertexBuffer* vertices, VertexBuffer* normals = 0, VertexBuffer* texCoords = 0);
  void SetSelections (VertexBuffer* selections);
  VertexBuffer* GetSelections ();

  void SetIndices (unsigned num, IndexBuffer* indices);

  void Render ();
};

}
}
#endif // POLYRENDERMESH_H
